<template>
  <el-container>
    <!-- 左侧导航栏 -->
    <el-aside width="250px">
      <!-- 导航菜单 -->
      <el-menu default-active="1" router class="el-menu-vertical-demo" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-setting"></i>
            <span>系统管理</span>
          </template>

          <el-menu-item index="/sys/dept">部门管理</el-menu-item>
          <el-menu-item index="/sys/emp">员工管理</el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>
    <!-- 系统管理的核心数据区域 -->
    <el-main><router-view></router-view></el-main>
  </el-container>
</template>

<script>
export default {
  name: 'SysView'
}
</script>

<style lang="less" scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
}

body > .el-container {
  margin-bottom: 40px;
}
</style>
